package com.zy;

public class User {
    private  int id;
    private String username;
    private String password;
    private int integral;
    private String phone;
    private boolean is_admin;
    public User(){

    }

    public User(int id,String username,String password,int integral,String phone,boolean is_admin){
        this.id=id;
        this.username=username;
        this.password=password;
        this.integral=integral;
        this.phone=phone;
        this.is_admin=is_admin;
    }

    public int getId(){
        return id;
    }

    public void setId(int id){
        this.id=id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public boolean isIs_admin() {
        return is_admin;
    }

    public void setIs_admin(boolean is_admin) {
        this.is_admin = is_admin;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString(){
        return "User{"+
                "id="+id+
                ",username='"+username+'\''+
                ",password='"+password+'\''+
                ",integral='"+integral+'\''+
                ",phone='"+phone+'\''+
                ",is_admin"+is_admin+'}';
    }
}


